package com.kuaimacode.kframework.mybatis.models.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 中元
 * @date 2019/04/08
 */
@TableName("user_order_dispatch")
@Data
public class OrderDispatch implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "订单ID")
	@TableField("order_id")
	private Long orderId;

	@ApiModelProperty(value = "订单号")
	@TableField("order_no")
	private String orderNo;

	@ApiModelProperty(value = "备注")
	@TableField("remark")
	private String remark;

	@ApiModelProperty(value = "师傅id")
	@TableField("master_id")
	private Long masterId;

	@ApiModelProperty(value = "派单人  0-系统")
	@TableField("dispatch_by")
	private Long dispatchBy;

	@ApiModelProperty(value = "状态 1-待接单 2-已接单 3-已拒绝")
	@TableField("status")
	private Integer status;

	@ApiModelProperty(value = "创建时间")
	@TableField("create_at")
	private Date createAt;

	@ApiModelProperty(value = "更新时间")
	@TableField("update_at")
	private Date updateAt;

	@ApiModelProperty(value = "推送次数")
	@TableField("push_count")
	private Integer pushCount;

	@ApiModelProperty(value = "电话语音次数")
	@TableField("call_count")
	private Integer callCount;

	@ApiModelProperty(value = "派单类型 person-管理员派单 auto-自动派单")
	@TableField("dispatch_type")
	private String dispatchType;

	@ApiModelProperty(value = "分站id")
	@TableField("agent_id")
	private String agentId;

	@ApiModelProperty(value = "是否指定师傅 1-是 2-否")
	@TableField("has_set")
	private Integer hasSet;

	@ApiModelProperty(value = "处理状态 1-未处理 2-已处理")
	@TableField("deal_status")
	private Integer dealStatus;

}
